// 常量路由
export const constRouter = [
	// 内容展示
	{
		path: '/',
		name: 'Layout',
		component: () => import('@/layout/index.vue'),
		meta: {
			title: '',
			icon: ''
		},
		// 重定向
		redirect: '/home',
		children: [
			{
				path: '/home',
				name: 'Home',
				component: () => import('@/views/home/index.vue'),
				meta: {
					title: '首页',
					icon: 'House'
				}
			}
		]
	},
	// 登录
	{
		// 登录
		path: '/login',
		name: 'Login',
		component: () => import('@/views/login/index.vue'),
		meta: {
			title: '登录',
			hidden: true,
			icon: 'Position'
		}
	},
	// 景点
	{
		path: '/scenic',
		name: 'Scenic',
		component: () => import('@/layout/index.vue'),
		meta: {
			title: '景点',
			icon: 'goods'
		},
		redirect: '/scenic/recommend',
		children: [
			{
				path: '/scenic/recommend',
				name: 'Recommend',
				component: () => import('@/views/scenic/recommend/index.vue'),
				meta: {
					title: '景区推荐',
					icon: 'Notebook'
				}
			},
			{
				path: '/scenic/picture',
				name: 'Picture',
				component: () => import('@/views/scenic/picture/index.vue'),
				meta: {
					title: '图片精选',
					icon: 'Picture'
				}
			},
			{
				path: '/scenic/bourn/:id',
				name: 'Bourn',
				component: () => import('@/views/scenic/recommend/bourn/index.vue'),
				meta: {
					title: '目的地',
					hidden: true,
					icon: 'Position'
				}
			}
		]
	},
	// 美食推荐
	{
		path: '/foods',
		name: 'Foods',
		component: () => import('@/layout/index.vue'),
		meta: {
			title: '美食',
			icon: 'KnifeFork'
		},
		// 重定向
		redirect: '/foods/food',
		children: [
			{
				path: '/foods/food',
				name: 'Food',
				component: () => import('@/views/food/index.vue'),
				meta: {
					title: '美食推荐',
					icon: 'Dessert'
				}
			},
			{
				path: '/foods/food/details/:id',
				name: 'FoodDetails',
				component: () => import('@/views/food/details/index.vue'),
				meta: {
					title: '美食详情',
					hidden: true,
					icon: 'Dessert'
				}
			}
		]
	},
	// 花费计算
	{
		path: '/moneys',
		name: 'Moneys',
		component: () => import('@/layout/index.vue'),
		meta: {
			title: '',
			icon: ''
		},
		// 重定向
		redirect: '/money',
		children: [
			{
				path: '/money',
				name: 'Money',
				// @ts-ignore
				component: () => import('@/views/money/index.vue'),
				meta: {
					title: '花费计算',
					icon: 'Dessert'
				}
			}
		]
	},
	// 旅游谨记
	{
		path: '/memorizations',
		name: 'Memorizations',
		component: () => import('@/layout/index.vue'),
		meta: {
			title: '',
			icon: ''
		},
		// 重定向
		redirect: '/memorization',
		children: [
			{
				path: '/memorization',
				name: 'Memorization',
				// @ts-ignore
				component: () => import('@/views/memorization/index.vue'),
				meta: {
					title: '旅游谨记',
					icon: 'Bell'
				}
			}
		]
	},
	// 数据大屏
	{
		path: '/screen',
		name: 'Screen',
		component: () => import('@/views/screen/index.vue'),
		meta: {
			title: '数据大屏',
			icon: 'DataAnalysis'
		}
	},
	// 404
	{
		// 404
		path: '/404',
		name: '404',
		component: () => import('@/views/404/index.vue'),
		meta: {
			title: '404',
			hidden: true,
			icon: 'FolderDelete'
		}
	},
	// 任意路由
	{
		// 任意路由
		path: '/:pathMatch(.*)*',
		redirect: '/404',
		name: 'Any',
		meta: {
			title: '404',
			hidden: true,
			icon: 'Postcard'
		}
	}
]

// 任意路由
export const anyRouter = [
	// 任意路由
	{
		// 任意路由
		path: '/:pathMatch(.*)*',
		redirect: '/404',
		name: 'Any',
		meta: {
			title: '404',
			hidden: true,
			icon: 'Postcard'
		}
	}
]
